package com.ruoyi.modules.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.modules.domain.TransportationCompany;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.VehicleMonthAuditDataMapper;
import com.ruoyi.modules.domain.VehicleMonthAuditData;
import com.ruoyi.modules.service.IVehicleMonthAuditDataService;

/**
 * 车辆月度审核视频Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class VehicleMonthAuditDataServiceImpl implements IVehicleMonthAuditDataService 
{
    @Autowired
    private VehicleMonthAuditDataMapper vehicleMonthAuditDataMapper;

    /**
     * 查询车辆月度审核视频
     * 
     * @param id 车辆月度审核视频主键
     * @return 车辆月度审核视频
     */
    @Override
    public VehicleMonthAuditData selectVehicleMonthAuditDataById(Long id)
    {
        return vehicleMonthAuditDataMapper.selectVehicleMonthAuditDataById(id);
    }

    /**
     * 查询车辆月度审核视频列表
     * 
     * @param vehicleMonthAuditData 车辆月度审核视频
     * @return 车辆月度审核视频
     */
    @Override
    public List<VehicleMonthAuditData> selectVehicleMonthAuditDataList(VehicleMonthAuditData vehicleMonthAuditData)
    {
        return vehicleMonthAuditDataMapper.selectVehicleMonthAuditDataList(vehicleMonthAuditData);
    }

    /**
     * 新增车辆月度审核视频
     * 
     * @param vehicleMonthAuditData 车辆月度审核视频
     * @return 结果
     */
    @Override
    public int insertVehicleMonthAuditData(VehicleMonthAuditData vehicleMonthAuditData)
    {
        vehicleMonthAuditData.setCreateTime(DateUtils.getNowDate());
        return vehicleMonthAuditDataMapper.insertVehicleMonthAuditData(vehicleMonthAuditData);
    }

    /**
     * 修改车辆月度审核视频
     * 
     * @param vehicleMonthAuditData 车辆月度审核视频
     * @return 结果
     */
    @Override
    public int updateVehicleMonthAuditData(VehicleMonthAuditData vehicleMonthAuditData)
    {
        vehicleMonthAuditData.setUpdateTime(DateUtils.getNowDate());
        return vehicleMonthAuditDataMapper.updateVehicleMonthAuditData(vehicleMonthAuditData);
    }

    /**
     * 批量删除车辆月度审核视频
     * 
     * @param ids 需要删除的车辆月度审核视频主键
     * @return 结果
     */
    @Override
    public int deleteVehicleMonthAuditDataByIds(Long[] ids)
    {
        return vehicleMonthAuditDataMapper.deleteVehicleMonthAuditDataByIds(ids);
    }

    /**
     * 删除车辆月度审核视频信息
     * 
     * @param id 车辆月度审核视频主键
     * @return 结果
     */
    @Override
    public int deleteVehicleMonthAuditDataById(Long id)
    {
        return vehicleMonthAuditDataMapper.deleteVehicleMonthAuditDataById(id);
    }

    @Override
    public List<TransportationCompany> selectTranCompanyAuditCount(Integer auditStatus) {
        return vehicleMonthAuditDataMapper.selectTranCompanyAuditCount(auditStatus);
    }
}
